﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CommunitySystem.Assert;
using CommunitySystem.Ctrls;
using CommunitySystem.Views;

namespace CommunitySystem
{
    public partial class PeiXunEmpWindow : AsyncCtrl
    {
        #region IReturnListenerc 成员
        public void BeginReturn()
        {

        }
        #endregion
        //public NavMoveSwitch Nav { get; set; }
        private PeiXunService.PeiXunServiceClient client1 = new PeiXunService.PeiXunServiceClient();
        public PeiXunEmpWindow(int peixunid,int orgid)
        {
            InitializeComponent();
            client1.PeiXunEmpCompleted += new EventHandler<PeiXunService.PeiXunEmpCompletedEventArgs>(client1_PeiXunEmpCompleted);
            client1.PeiXunEmpAsync(peixunid, orgid.ToString());
        }

        void client1_PeiXunEmpCompleted(object sender, PeiXunService.PeiXunEmpCompletedEventArgs e)
        {
            DGRole_admin.ItemsSource = null;
            DGRole_admin.ItemsSource = e.Result;
        }
    }
}
